﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminSubMasterPage.master"
    AutoEventWireup="true" CodeFile="Fin003b.aspx.cs" Inherits="Admin_Fin_Fin003b" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(function () {
            $("#chk_sel_all").change(function () {

                var isChecked = $(this).is(":checked");

                $(".sel_class>input").each(function () {
                    $(this).attr("checked", isChecked);
                });

            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Service_table_tow">
        <tr>
            <td colspan="4" class="xin_y1 caption" align="center">
                添加凭证盒
            </td>
        </tr>
        <tr>
            <td class="xin_y2">
                Location:
            </td>
            <td>
                <yncWebDDL:DrpThirdUnit ID="drpLocation" Enabled="false" runat="server" ShowSelectedItem="false">
                </yncWebDDL:DrpThirdUnit>
            </td>
            <td class="xin_y2">
                Box No.:
            </td>
            <td>
                <yncWeb:yncTextBox ID="txtBoxNo" runat="server" ValidateType="Regex" RegexPattern="^[A-Za-z0-9]+$"
                    RegexMessage="输入内容只能是：A-Z,a-z,0-9"></yncWeb:yncTextBox>&nbsp; &nbsp;
                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <yncWeb:PagnationGrid PageSize="20" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
                    <HeaderTemplate>
                        <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                            <thead>
                                <tr>
                                    <th width="40px">
                                        <asp:CheckBox ID="chk_sel_all" ClientIDMode="Static" runat="server" />
                                    </th>
                                    <th width="160px">
                                        Box No.
                                    </th>
                                    <th width="180px">
                                        Document type
                                    </th>
                                    <th>
                                        凭证数量
                                    </th>
                                    <th width="120px">
                                        Created by
                                    </th>
                                    <th width="120px">
                                        Created date
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:CheckBox ID="chk_sel" class="sel_class" runat="server" Text="<%# Container.ItemIndex +1 %>" />
                                <asp:Label ID="lbBoxID" runat="server" Visible="false" Text="<%# Eval(VBoxReceiptsMetadata.ColumnNames.BoxID) %>"></asp:Label>
                            </td>
                            <td>
                                <%# Eval(VBoxReceiptsMetadata.ColumnNames.BoxNo)%>
                            </td>
                            <td>
                                <%# Eval(VBoxReceiptsMetadata.ColumnNames.DocTypeName)%>
                            </td>
                            <td>
                                <%# Eval(VBoxReceiptsMetadata.ColumnNames.ReceiptCount)%>
                            </td>
                            <td>
                                <%# Eval(VBoxReceiptsMetadata.ColumnNames.CreatedBy)%>
                            </td>
                            <td>
                                <%# Eval(VBoxReceiptsMetadata.ColumnNames.CreatedDttm).FormatDate(ConstantValue.DateFormat)%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </yncWeb:PagnationGrid>
            </td>
        </tr>
        <tr>
            <td colspan="4" class="xin_y2" align="right">
                <asp:Button ID="btnSave" runat="server" Text="确认" OnClick="btnSave_Click" />
                <input type="button" value="关闭" onclick="javascript:window.top.CloseDialog(false);" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center" height="24px">
                <asp:Label ID="lbMessage" runat="server" ForeColor="Red" Text="&nbsp;" Font-Bold="true" />
            </td>
        </tr>
    </table>
</asp:Content>
